#@adminLayout()
#define main()
<div class="jbolt_page">
    <div class="jbolt_page_content">
        <div class="col-12">
            <form id="retailerFormFina"  action="/auth/mall/retailer/update_finance" method="post" onsubmit="return RefreshsubmitForm(this);">
                #if(retailer.id??)
                <input type="hidden" name="retailer.id" value="#(retailer.id)" />
                #end

                <div class="form-group row">
                    <label class="col-3 col-form-label">商家名称</label>
                    <div class="col-8">
                        <input class="form-control" type="text" data-rule="required"   readonly="readonly" name="retailer_name" value="#(retailer.name??)">
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-3 col-form-label">余额(元)</label>
                    <div class="col-8">
                        <input type="number" autocomplete="off" readonly="readonly" class="form-control" min="0"  name="balance" value="#(MyUtil.get_price_string(retailer.balance??)??)">
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-3 col-form-label">会员折扣(%)</label>
                    <div class="col-8">
                        <input type="number" autocomplete="off" data-rule="required" data-tips="请输入会员折扣" class="form-control" min="0" max="100"  placeholder="请输入会员折扣"  name="retailer.discount" value="#(retailer.discount??)">
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-3 col-form-label">平台抽成(%)</label>
                    <div class="col-8">
                        <input type="number" autocomplete="off" data-rule="required" data-tips="请输入平台抽成" class="form-control" min="0" max="100" placeholder="请输入平台抽成"   name="retailer.platform_commission" value="#(retailer.platform_commission??)">
                    </div>
                </div>


                <div class="form-group row">
                    <label class="col-3 col-form-label">分销商积分比(%)</label>
                    <div class="col-8">
                        <input type="number" autocomplete="off" data-rule="required" data-tips="请输入分销商积分" class="form-control" min="0" max="100" placeholder="请输入分销商积分"  name="retailer.spreader_credit" value="#(retailer.spreader_credit??)">
                    </div>
                </div>


                <div class="form-group text-center">
                    <button  type="submit"    class="btn btn-success"   ><i class="fa fa-check mr-2"></i>确定</button>
                </div>
            </form>

        </div>
    </div>
</div>
</div>
#end


#define js()
<script>
</script>
#end
